$(function(){
   $("#send").click(function(){
       var name = $("#user_name").val();
       var pwd = $("#pwd").val();
       var url = "http://119.23.107.233:4001/mobile/login/";
       var data = {authType:4,phone:name,password:pwd};
       if(name !=""&&pwd !=""){
           $.ajax({
               type: 'POST',
               url: url,
               data: data,
               success: function(result) {
                   alert(result.message+"，即将跳转页面！");
                   if(result.result == "ok"){
                       window.location.replace("index.html");
                   }
               },
               error:function(err){
                   console.log(err);
               }
           });
       }else{
           alert("请输入用户名和密码！");
       }
   });
});
